<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="${object.javaPackagePath}dao.${object.moduleName}.${table.className}Dao">
    <resultMap id="BaseResultMap" type="${object.javaPackagePath}entity.${object.moduleName}.${table.className}">
    <#list table.cloums as c>
    <#list table.pkCloums as pk>
    <#if c.cloumName == pk.cloumName>
        <id column="${pk.cloumName}" property="${pk.propertyName}" jdbcType="${pk.jdbcType}" />
    <#else>
        <result column="${c.cloumName}" property="${c.propertyName}" jdbcType="${c.jdbcType}" />
    </#if>
    </#list>
    </#list>
    </resultMap>

</mapper> 